package com.dg11185.nearshop.db.entity;

import com.dg11185.libs.ormlite.field.DatabaseField;
import com.dg11185.libs.ormlite.table.DatabaseTable;

/**
 * 分别记录不同数据库表上一次的更新时间, 当数据过期时更新数据
 * 
 * @author：Daibo
 * @time：2014-5-20 下午3:08:17
 */
@DatabaseTable(tableName = DbConstant.LAST_UPDATE_TIME)
public class LastUpdateTime {

    /**数据库需要用到的自增主键，用于删除数据*/
    @DatabaseField(generatedId = true)
    private int id;
    
    /**数据库表名*/
    @DatabaseField(width = 30)
    public String name = "";

    /** 记录时间字符串yyyy-MM-dd HH:mm:ss */
    @DatabaseField(width = 20)
    public String record = "";

    /**
     * all persisted classes must define a no-arg constructor with at least
     * package visibility
     */
    public LastUpdateTime() {

    }
}
